package com.joshua.viewtest.demo.cardview;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.joshua.viewtest.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class CardViewTestAty extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_card_view_test_aty);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.card_view_test1, R.id.card_view_test2, R.id.card_view_test3})
    public void onViewClick(View v) {
        switch (v.getId()) {
            case R.id.card_view_test1:
                startActivity(new Intent(CardViewTestAty.this, CardViewTest1.class));
                break;
            case R.id.card_view_test2:
                startActivity(new Intent(CardViewTestAty.this, CardViewTest2.class));
                break;
            case R.id.card_view_test3:
                startActivity(new Intent(CardViewTestAty.this, CardViewTest3.class));
                break;
        }
    }
}
